﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="member.aspx.cs" Inherits="HY.WEB.PQ._member" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
  <form id="form1" runat="server">
    <div >
    
        <ext:PageManager ID="PageManager1" runat="server" />
        <ext:HiddenField ID="hidstype" runat="server"></ext:HiddenField>

             <ext:Panel ID="Panel2" runat="server" BodyPadding="5px" EnableBackgroundColor="true"
            ShowBorder="false" ShowHeader="false" Title="Panel">
            <Items>  
<ext:Form ID="Form2" runat="server" Height="36px" BodyPadding="5px" ShowHeader="false"
ShowBorder="false" EnableBackgroundColor="true">
<Rows>
<ext:FormRow ID="FormRow1" runat="server">
<Items>

<ext:DropDownList ID="ddlfiled" runat="server" Label="查询字段"  >
</ext:DropDownList>

<ext:DropDownList ID="ddlwhere" runat="server" Label="查询条件"  >
</ext:DropDownList>

<ext:TwinTriggerBox ID="txt" runat="server" ShowLabel="false" EmptyText="关键字"
 Trigger1Icon="Clear" Trigger2Icon="Search" ShowTrigger1="false" OnTrigger2Click="ttbSearchMessage_Trigger2Click"
　OnTrigger1Click="ttbSearchMessage_Trigger1Click">
</ext:TwinTriggerBox>

    <ext:Button ID="btnSearch" Icon="Zoom" runat="server"  Text="高级查询" >
    </ext:Button>
</Items>
</ext:FormRow>

</Rows>
</ext:Form>
    </Items>
  </ext:Panel>

  <ext:Panel ID="Panel1" runat="server" BodyPadding="5px" EnableBackgroundColor="true"
            ShowBorder="false" ShowHeader="false" Title="Panel">
            <Items>
  
   <ext:Grid ID="Grid1" Title="数据列表"     PageSize="15" ShowBorder="true" ShowHeader="true" Height="450" AllowPaging="true"
        runat="server" EnableCheckBoxSelect="True"  DataKeyNames="sid" AutoScroll="true" 
        OnPageIndexChange="Grid1_PageIndexChange" EnableRowNumber="True" OnSort="Grid1_Sort">
         <Toolbars>
            <ext:Toolbar ID="Toolbar1" runat="server">
                <Items>
                    <ext:Button ID="btnNew" Text="新增数据" Icon="Add" EnablePostBack="false" runat="server">
                    </ext:Button>
                    <ext:Button ID="btnDelete" Text="删除选中项" Icon="Delete" OnClick="btnDelete_Click" runat="server">
                    </ext:Button>
                        <ext:Button ID="Button1" Text="在职人员" Icon="DriveUser" OnClick="btnpin_Click" runat="server">
                    </ext:Button>
                        <ext:Button ID="Button2" Text="待职人员" Icon="DriveNetworkStop" OnClick="btnpout_Click" runat="server">
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <Columns>
             <ext:TemplateField Width="50px"  HeaderText="编号" >
                <ItemTemplate>            
                   <%#(Eval("sbh").ToString().Trim()).Substring(2, (Eval("sbh").ToString().Trim()).Length - 2)%> 
                      </ItemTemplate>                     
             </ext:TemplateField>

   <ext:HyperLinkField Width="60px" DataToolTipField="user_name" DataTextField="user_name"  SortField="user_name" HeaderText="姓名" 
            DataNavigateUrlFields="sid"
                 DataNavigateUrlFormatString="member_view.aspx?sid={0}"
                DataNavigateUrlFieldsEncode="true"  Target="_blank"  />
                    
               <ext:BoundField Width="40px" DataField="sex" DataFormatString="{0}" SortField="sex" HeaderText="性别" />
           
              <ext:TemplateField Width="120px"  HeaderText="派驻公司" >
                <ItemTemplate>
                    <asp:Literal ID="Literal4" runat="server" Text=<%#getcompany(Eval("sbh").ToString())%>></asp:Literal>             
                </ItemTemplate>
             </ext:TemplateField>

                <ext:TemplateField Width="50px"  HeaderText="年龄" >
                <ItemTemplate>
                    <asp:Literal ID="Literal1" runat="server" Text=<%#renage(Eval("birthday").ToString())%>></asp:Literal>             
                </ItemTemplate>
             </ext:TemplateField>
                          
              <ext:BoundField Width="60px" DataField="jg" DataFormatString="{0}" SortField="jg" HeaderText="籍贯" />

               <ext:BoundField Width="140px" DataField="tel" DataFormatString="{0}" SortField="tel" HeaderText="手机" />

                 <ext:TemplateField Width="80px"  HeaderText="在职状态" >
                <ItemTemplate>
                    <asp:Literal ID="Literal3" runat="server" Text=<%#getstatus(Eval("inout").ToString())%>></asp:Literal>             
                </ItemTemplate>
             </ext:TemplateField>


                <ext:TemplateField Width="120px"  HeaderText="市场来源" >
                <ItemTemplate>
                    <asp:Literal ID="Literal2" runat="server" Text=<%#Eval("ftype").ToString()+"-"+Eval("fname").ToString()%>></asp:Literal>             
                </ItemTemplate>
             </ext:TemplateField>

               <ext:BoundField Width="80px" DataField="owen" DataFormatString="{0}" SortField="owen" HeaderText="责任人" />


              <ext:BoundField Width="80px" DataField="sales" DataFormatString="{0}" SortField="sales" HeaderText="录入人" />


                <ext:BoundField Width="120px" DataField="updtime" DataFormatString="{0:yyyy-MM-dd hh-MM-ss}" HeaderText="录入时间" />  

          
         <ext:WindowField ColumnID="myWindowField" Width="60px" WindowID="Window1" HeaderText="功能"
                Icon="TableEdit" ToolTip="编辑" DataTextFormatString="{0}" DataIFrameUrlFields="sid"
                DataIFrameUrlFormatString="member_edit.aspx?sid={0}" DataWindowTitleField="user_name"
                DataWindowTitleFormatString="编辑 - {0}" />
          
        </Columns>
    </ext:Grid>
         </Items>
        </ext:Panel>
           <ext:Window ID="Window1" Title="编辑" Popup="false" EnableIFrame="true" runat="server"
        CloseAction="HidePostBack" EnableConfirmOnClose="true" IFrameUrl="about:blank"
        OnClose="Window1_Close" Target="Top" IsModal="True" Width="750px" Height="509px">
    </ext:Window>
    </div>
    </form>
</body>
</html>
